Writing a library question

I'm a hobbiest programmer who, a couple weeks ago, could hardly deal with classes at all. Then I found the tutorial on classes at cplusplus.com. It changed my world.

http://cplusplus.com/doc/tutorial/classes/

Pay attention to the part about constructors. The tutorial on the arduino site about writing your own libraries will also be helpful. It does show an example of what you want.