If he had added OPTION _EXPLICIT to the top of his program, the compiler would have warned of an undeclared variable being used. Without OPTION _EXPLICIT you simply have an array grain(600, 600) of type unsigned long and a variable grain of type single. All valid in BASIC.