Mikhail Tsarev lab1

I think, you should implement this method and use it in `equals`.