chore: refactor demo application and create services.

#30, #29, #10