Make view models CS classes instead of functions