Teacher arrested for showing ‘R’ rated movies to class