Conversion of the sample program