Long way for type inheritance