Week 5 assignments 2 3

I implemented assignments 2 and 3 without the solutions. Before proceeding on the next solutions I would like it if someone could review my code. Thank you