Class structure for homework #3.