created write_list method for FastaWriter