first working example
first working example with public and restart