finished P18.hs
added comments to p18.fs