added hashcode functions to following classes