edits to hdf exercise