some code relates to machine learning course in coursera