Business rules shared across client and server-side apps