problem5_and_6