Revised namespace templates with updated variables and methods