ompleted code