Magnetic adatoms as building blocks for quantum magnetism