C with classes