working assignment 1 : all c & script