Implementing controllers

Implementing controllers