Adding solutions to 1.1, 1.2 and 1.3.