integrated backend and frontend code to some extent