Completed insert_at_index