Now extending the Panel class instead of the JPanel class