added sequence diagram.