equals, compareTo and hashcode added in Policy