Implemented Panel class and TextPanel