added variables and parameters method to problem