till fig 11.7 Logging out feature complete