initial answer to food chain in ruby