sample grid codes