Tidier code, second example of data-bind