Implemented registration course to twins and added an example that use this function