[<< previous](05-router.md) | [next >>](07-inversion-of-control.md) ### Dispatching to a Class In this tutorial we won't implement [MVC (Model-View-Controller)](http://martinfowler.com/eaaCatalog/modelViewController.html). MVC can't be implemented properly in PHP anyway, at least not in the way it was originally conceived. If you want to learn more about this, read [A Beginner's Guide To MVC](http://blog.ircmaxell.com/2014/11/a-beginners-guide-to-mvc-for-web.html) and the followup posts. So forget about MVC and instead let's worry about [separation of concerns](http://en.wikipedia.org/wiki/Separation_of_concerns). We will need a descriptive name for the classes that handle the requests. For this tutorial I will use `Controllers` because that will be familiar for the people coming from a framework background. You could also name them `Handlers`. Create a new folder inside the `src/` folder with the name `Controllers`.In this folder we will place all our controller classes. In there, create a `Homepage.php` file. ```php $method($vars); break; ``` So instead of just calling a method you are now instantiating an object and then calling the method on it. Now if you visit `http://localhost:8000/` everything should work. If not, go back and debug. And of course don't forget to commit your changes. [<< previous](05-router.md) | [next >>](07-inversion-of-control.md)