added a new test problem
introduced types into ported matlab code