This is the all the solution on every quizz in machine learning coursera, Andrew Ng