code: from_list
test: from_list