Adding student code for append_rlists_iteratively