defining classes homework assignment