extend JFrame class
added a button using contentPane() and add()
added a button without using contentPane()