Static, dynamic and run-time modeling of compound classes