1st homework of pattern recognition course