Implement day4 exercises and homework