Task A and Task B target functions (1D)