solving P07