Created controllers
started writing algo in comments