Implemented simplify method