How to simulate workout for a dumbbell in ECNA 2017 Problem J?