Update 8.hs, add 9.hs and finish 10.hs