Tested operator overloading. Made functions const