Code for Assignments