Answer in ruby