Introducing 2 solutions to problem 5