add main template classes