A model of a Federates Application working in context