refactored recipe class to use array#map