updated uml according to sequnce diagram