An experiment in teaching programming using grids