add previous predictions as feature, add java related library and code