Added the code for the assignment