simple refactoring
added options parameter to ViewModel constructor
added method to get attributes that should be wrapped
added options argument to view model factory method
updated example