Fully Implemented PEDMAS