problem 4a working