Filled up the assignment functions and added comments