Added classes for HW3.