Homework for (online) course on Haskell