Change print method to puts