Class demonstration code.