Implement Template class and app dir