main function - fmap with IO