input data parser as separate class