Refactor the main

bin/sample now call Sample.hello()