Made a panel class and object