rearranged solutions. new solution for P06