added inherritence part 1