       guard
         let nonNilData = data,
         error == nil,
-        let result = try? JSONSerialization.jsonObject(with: nonNilData, options: [])
+        let result = try? JSONSerialization.jsonObject(with: nonNilData, options: []) as? [String: Any]
       else {
         Swift.print("Failed to send recipe")
         return
       }
-      Swift.print(result)
+      guard let recipeID = result?["id"] as? Int else {
+        Swift.print("Faild to parse the response data")
+        Swift.print(String.init(describing: result))
+        return
+      }
+      Swift.print("Sending recipe succeeded")
+      self.recipeID = recipeID
     }
     task.resume()
   }

// Network
extension Demo_ScreenSaverView {
  fileprivate func send(recipe: Recipe) {
    guard let data = try? JSONSerialization.data(withJSONObject: ["raw": recipe.description], options: []) else {
      Swift.print("Serializing to JSON failed")
      return

      }
    }
  }
  
  fileprivate var recipeID: Int?
  
  override var animationTimeInterval: TimeInterval {
    get {
