modified to handle variable length in exercise details
refactored into class
refactored out the detail massaging