added push method to stack