First working version based on the SDK Home example