Refactor Rectangle class to use angles instead of integers