Changed function fmap method to map