Beginning of Template System

Not working as of now.