Solid Design Pattern In C