Creating main application structure