add pending method

closes #10.