added sample project
Fixed contract check in task dispatcher