initial commit of divideKingSales() and subsidiary functions