required inputs

required inputs, plus a short test.