Solutions for modules exercise.