Implemented requirement of programming assignment

Implemented requirement of programming assignment