Added brent as class and tried to apply multithr.