hw3: implement DUPoint and Grid classes