added Peg class