Add solutions to problem 004