Example using matrices to store data