#5 fix bug with equality operator; extract some code to separate methods in Exchange class