updated uml as per ta's comments