main.m implemented and set up