templete class, some problems