Task4 needs operator overloading and method for writing result in files.