code written with java