debugged create_work and compute_result for part 2