From Agents to Artifacts Back and Forth: Purposive and Doxastic use of Artifacts in MAS