Text this: Proper quadratic cost functions with an application to the Bell system.