added code for using a style class for holding grid and font information