Solutions

Four lines, one standard

Each line solves a complete capability. Pick the one you need; the execution is the same.