added CreateInstance method to all components