writing on java8