changing snippet for inherited class