Added isEmpty() method to teh Stack class.