adding check task spec and implementation
adding checkTask method and implementation