Added a module to check for equality based on instance variables