added custom equals method to compare objects