Final version of my code for second assignment.

This commitment is made as a part of 2nd assignment examination.