added new problem and fix some compilation issues from the refactoring