HW2-mini assignment

This is my solution for mini assignment.