implemented get_data and input case, added some io:format
some methods needed here and there