Implement Task Graph