Made main class final.