added source for scala example