create new file app.c

it's a individual file for every application to finish, only finish the interface "create_task" is ok.