sample app used in book