Problem 12 works, too slow though