add task with two parameters
add type checking