added grid class system