Beginnings of a Peg class.

Still needs lots of work.