Added logic class to handle arithmetic logic and question generation. Added function to evaluate expression.