Implementation of Conway' s Game of Life (tutorial exercise)