Refactored input-data.sh: added separate method for each input.