wrote controller_spec for exercise