added new sample of exteneded class