Some scriptlets using scala language