added new class to calculate the expense