updated c-fortran samples