I guess this code need headers. Do you save it in a file and then type this file in CLI to launch it?