A Safe System Approach and Implementation for Urban and Rural Roads