prob07 working