finish 11 SML Functions