Changed inheritance structure, also moved the method to create the pegs.