added exercise for template classes