Logic part for our first project in objective-c.