breg function

Creates a new breg-class object