Back end server code for Hands On App