Changing p to puts