implemented inline templates.