solutions to some of the exercises (LOGO)