Cyber-Physical System and Contract-Based Design - A Three Dimensional View