Adds main class for Gallery app.