finish new function 9-2