added peek method to stack class