Add example machine learning codes