Create a map using the Factory design pattern  (Example)