Created Template factory and view classes