A white box solution to the black box problem of AI