Basic construction from dict