added template snippet; fixed class snippet