Implementing multiple inheritance