Deal function def

Deal function def
To be contiuned