Integrated backend of #1, working on frontend