working on probl 5