A sample which has implemented how beacon works.