Completing the function of adding machin, adding task, adding tag