coding #3 add elements for class