code for learning machine learning