C class code