creating objects using C