Add solution for exercise 2

Signed-off-by: Daniel Francis <francis@sugarlabs.org>