example based on 5-6, nonstatic member class example