Started on p2.30 using 3-d arrays

Copied the approach in professor’s example using tables and arrays