adding == operator and concept of nil