step 2: modelize the index action