added lesson2: creating a controller