Modified c_extract and c_declare in tutorial and scalar.