If going solo to the gym or for a run doesn’t motivate you to exercise, a group fitness class might be your solution. A consistent workout regimen does not come easily to everyone. So finding an activity you enjoy, like Pilates, yoga or spinning, and joining others on the same journey can make it easier for you to maintain your commitment.

It’s fun to work out with others because you share the same purpose and work toward your individual fitness goals together. And a group exercise class is ideal if you’re the type of person who needs to be held accountable or prefers having a leader or instructor to tell you what to do. Here are five group exercise classes worth investigating.

If heading out on the open road grinds your gears, group cycling or spinning at your gym could be for you. Stationary bikes let you customize your ride speed and incline, and cycling is a low-impact exercise suitable for every fitness level. Many instructors offer theme rides, so you can head to the summit listening to a special playlist.

Lifting weights on your own can be intimidating. That’s why many fitness studios and gyms offer group resistance training classes to help people build confidence — and muscle. Classes can include lifting weights and doing pushups, pullups or lunges, while incorporating interesting equipment like sandbags or tractor tires (which can be tossed, flipped or carried) to keep things fun.

In the 1920s, physical trainer Joseph Pilates developed a series of exercises.