added method walk to ArrayList