successfully completed problem set 3