* Extracted the main frame into a separate class