Just to store code from book, learn you a haskell