Add TaskService.java, modifying for use in this project