Implemented the __abs__ method.