Updated the rules
minor update tot the output