My attempt on "CIS 194: Introduction to Haskell (Fall 2014) by UPENN" homeworks