breaking code into modules: core, searchPage, profilePage