Homework of ML class by Andrew Ng