C programs for class