a simple version just using print