Creating original object in C

I have recently started making objects in C, but having a trouble with creating one from scratch or simply renaming the existing one. I have successfully played around with examples editing them, but I hit the wall when I simply want to create an object with another name. If I make a copy of the example and rename the project it does create the object with the new name but in Max it shows up with no inlets or outlets and not working properly.