Towards Provably Safe and Secure Systems with Contract-Based Design - ii part