British Rail Class 507 electric multiple units were built by BREL at York works from 1978 to 1979 . British Rail Class 507 electric multiple units were built by BREL at York works in two batches from 1978 to 1980 .