task 3: compute() half done