Simple java example