Adds a solution for 1.2-1 exercise.