Adding refactored problem.cs to repository