working on exercise A