Moving method to views
Moved method from synthProblem to views