initial version for Task pattern is working