Spark program for wtist