added my MainHandler class and the init function