Implemented overloaded operators.
overloaded operators and minor change to contructor.