added parse_list() and parse_dict()
change sample.txt to test simple cases