ex 2.2 add views related code to app