integrated the stream api, and the org.json, and task implementation