Solve log-in-log-out exercises