exercise 5: sequence diagram