create chord ex added in java