Rename templates to views
Wrap views function to classes