A uva homework calculator in Haskell