scratch work complete for scenario  to 9