Defined method split_line
raise ArgumentError when parameter is empty
Splits the array
Added return statement
Defined encode_line method
Raises ArgumentError if weather_data is incomplete