A generalisation of the Calogero-Moser system