creation of Panel class