first example of the API (no hardware touched)