problem 60: working but ugly

   using list instead of hash
   run in 70+ secs