Completed make_list function