adding base template classes