wrote Chain::Flush(), finished first version of Chain class