Added equals and hashcode
Initial implementation of add instance method