added equals solution