added peek method to stack