for programming homework of cs757.