Text this: Cost-benefit analysis in demand response with penalty and grid management using blockchain