Index controller to class
Merge pull request #6 from alexis1704/master

Index controller to class