Solved solution 9. Prints out twice for some reason.