Added frame
Changed main method
Added constructor