lab9 pre assignment works