Adding exponent.hs from homework.