made changes
added the assignment method