add "clear" method that clears out input (with tests)