completed problem5