added put and get methods to Factory