building a basic layout template and using template inheritance for other templates