add working code

Ubuntu