Added class_derived snippet