Created mainframe
Made each title into String in Array
Changed outwrite method to append