added scala syntax

Signed-off-by: Emiliano Firmino <emiliano.firmino@gmail.com>