Implemented hashcode

- implemented hashcode