modeling labs on scala