arrays exercises complete the matrix class by implementing the remaining methodsmult and transpose(sub implement the numliveneighbors(method of the lifegrid class complete the implementation of the gameoflife py program by implementing the draw(function the output should look similar to the followingwhere dead cells are indicated using period and live cells are indicated using the symbol modify the gameoflife py program to prompt the user for the grid size and the number of generations to evolve use your program from exercise to experiment with the initial configurations shown in figure answer the following questions for each configuration using variety of grid sizes and assuming no more than generations (adoes the configuration die out(bdoes the configuration become stable(cdoes the configuration become an oscillator(dhow many generations were required before each configuration resulted in one of the states indicated in parts ( ( )figure sample game of life configurations