Source code for Day 7 and home work