Convert C code to Scheme