The initial code and the sample algorithm to convert