adding code for simple controller