My assignment solution

This is it.