one solution to the exercises