Ajusting the Barabasi Albert network to use the new class