refactored Stock equals method, again