add basic cost analysis