Added main function as an entery to the app