Dealt with 2-dimensional arrays and command line method execution