added interface of task3.cpp
fixed