developed sample_mlacomp, function and testing