lab9 parts 1-3