New Java example