Connecting frontend and backend (very basic)