Convert the Main Class.