Updated code samples for os-services extension

bug: #1104264

Change-Id: I8c2dde7a912c6833683c0824de041104e0a8b7ca
author: Diane Fleming