example oop in ansi c