Adding working solution to problem 64