Created the ApplicationFactory