added Main class
modified frame