added helper methods get_input_int and convert_str_to_int (untested/non working), defines