A simple model for Engine and UDF app design patterns