Create matrix.swift