added actitivity diagram and an example