added definitions and .each to challenge_2