first implementation fragments (java)