Simplified affordances example and condensed into a class.