Seven segment display class.

cmj,
problems with projects are best dealt with in "Arduino Forum ? Hardware ? Interfacing". Otherwise anarchy rules.

There are two nice examples above that you could implement and understand as a first step.