completed exercises from 1.1 to 1.5 in Scheme, Haskell and JavaScript