added machine learning example to optimization