added p6 to scala