.
modify regularization part. Using composite design pattern.
.
.