sample code for black jack