Create ex9.hs