Three defendants are handed prison terms