Working scene registration using factory and c++11 language features