Code clean
Hash code and equals methods
Added utility method