Creating a basic controller