corrected getbalance function in expenses and added expenses object initialization at main