Working controller. Ready for template engine