Add datatypes.hs file for Chapter 7