Added functionality to create exercise object.