Code example for Basic Implementation