Finish the 6th program (just copied fom 2)