Used for course project of datasciencecoursera