Added the "template" code

added the "template" code i.e created a window with OpenGL context.