Refactored the Input class to pull out api capture so the class can be tested with a mock api value.