Making example code work with language changes