added scala sample