added equals,hashCode,toString and some shit to main