Updated rect tool to be more understandable