Created SourcePort object with logic for checking validity of numbers.