updated command method to include reversion of new_array. Test passed after this