scala implementation of arowana