pie class