created a Panel class