Added getInput method with a default value