Creating main application