working on problem #3