 }
 
 // MARK: Classes
+public class PKMPagedObject: Mappable{
+    public var count: Int?
+    public var next: String?
+    public var previous: String?
+    public var results: [PKMBaseObject]?
+    
+    required public init?(_ map: Map) {
+        
+    }
+    
+    public func mapping(map: Map) {
+        count <- map["count"]
+        next <- map["next"]
+        previous <- map["previous"]
+        results <- map["results"]
+    }
+}
+
 public class PKMLanguageObject: Mappable{
     public var name: String?
     public var language: PKMBaseObject?

            
        }
    }
}
}


public func fetchBerryFlavours() -> Promise<PKMPagedObject>{
    return Promise { fulfill, reject in
        let URL = baseURL + "/berry-flavor"
        
        Alamofire.request(.GET, URL).responseObject() { (response: Response<PKMPagedObject, NSError>) in
            if (response.result.isSuccess) {
                fulfill(response.result.value!)
            }else{
