created template, added java examples