add formatting and MiniGrid class