Divided code by modules. Wrote basic controller logic.