結果 : write the main function of control unit