Some haskell problem I solved during my university course