added examples to the backend and connected to frontend