Implemented invoice factory and invoce model.