created the first half of OOP on c demo