Create main.m

This is a final script of the project.