Finished converting curve_demo