Added new code to assignment