Added App class with main function