implemented the interatomic force class