Add put_line method to Space class