added calc_examplecode.js