up to custom_pop(input_list) working