working on 3rd assignment