Added a full code example

Change-Id: I804a814017e675c5a90683027718056b3ee2c610