overloading of ">>" operator