Backend code from this youtube tutorial https://www.youtube.com/watch?v=IhgIHh5v-1I&list=PLaBeGKL1tOU0FuOxkLHFy_zOlIqOWUcNc&index=1