Problem 12 done and code cleaned up in other solutions