Wrote some hashcode and equals methods so Hash based Collection will
work.