Bernstein Elaborated And Restricted Codes