Implemented simple factory resolver