adding a hashcode method to comply with overriding equals to comply with
compare to advice from sonar.