added scala assignment