binding a class and a value