Modernizing Legacy Systems with AI and Machine Learning