implementation according to the PSE Molecular Dynamics lab