added and tested Boys function