added example code for multiple inheritence.