Class assignment for inheritance practice