refactoring: made foreground color and background color settable