Add Phase class to scala project.