Added basic code for the Assignment#2 (Problem2)