class update

added template