grid system and makefile