Integrating machine learning concepts into undergraduate classes