A Framework for The Metaverse