beam2: updated example to demonstrate beam as networking layer