Update solution3.hs