make modular and testable answers for recipe exercise (todo: write tests)