Add Main class to be the entrance &the size control