Refectoring Rectangle to use float instead of int