Task3 changed to update the output of prediction (not a major change)