Updated the Button sample and fixed the small runtime bug so that the examples run