creating a custom grid