First try of factories
Merging factories