A Theory of Objects