add a readonlytemplate class