Changed Rectangle to use doubles as a base instead of ints