First stage of adding Matrix. New IDEA project.