Added the logic for transfer knowledge