using generated classes in samples