rendering on its own, use named constants instead of magic numbers, cleaned code, implemented Undo functionality.