modified lambda-by-matrix
added pwtest exercise