Solution for home work 2

Solution for home work 3

Solution for bonus problems

Solution for home work 4