Julia implementation of collective dynamics