refactored Recipe.java