Working code for Day 7.