Basic OOP with single inheritance in C in 5 lines