binding a class to a model property