Used css file for styling rectangles instead of inline styling.