finish basic functionality in the paper