не могу реализовать необходимые методы jsqmessagesviewcontroller свифт 3

jsqmessagesvcswift 3

я пытаюсь использовать в моем проекте. он был установлен через стручки какао и все выглядит нормально. проблема я не могу реализовать методы collectionview и продолжаю получать ошибки. может кто-нибудь помочь мне?

errors
import uikitimport jsqmessagesviewcontrollerclass chatviewcontroller: jsqmessagesviewcontroller {    var messages = [jsqmessage]()    override func viewdidload() {        super.viewdidload()        collectionview!.delegate = self        collectionview!.datasource = self        collectionview!.collectionviewlayout.incomingavatarviewsize = cgsize.zero        collectionview!.collectionviewlayout.outgoingavatarviewsize = cgsize.zero    }    override func collectionview(_ collectionview: jsqmessagescollectionview, messagedataforitemat indexpath: indexpath) -> jsqmessagedata {        return messages[indexpath.item]    }    override func collectionview(_ collectionview: uicollectionview, numberofitemsinsection section: int) -> int {        return messages.count    }    override func collectionview(_ collectionview: jsqmessagescollectionview!, messagebubbleimagedataforitemat indexpath: indexpath!) -> jsqmessagebubbleimagedatasource! {        let message = messages[indexpath.item] // 1        if message.senderid == senderid { // 2            return outgoingbubbleimageview        } else { // 3            return incomingbubbleimageview        }    }    override func collectionview(_ collectionview: jsqmessagescollectionview!, avatarimagedataforitemat indexpath: indexpath!) -> jsqmessageavatarimagedatasource! {        return nil    }    lazy var outgoingbubbleimageview: jsqmessagesbubbleimage = self.setupoutgoingbubble()    lazy var incomingbubbleimageview: jsqmessagesbubbleimage = self.setupincomingbubble()    private func setupoutgoingbubble() -> jsqmessagesbubbleimage {        let bubbleimagefactory = jsqmessagesbubbleimagefactory()        return bubbleimagefactory!.outgoingmessagesbubbleimage(with: uicolor.jsq_messagebubbleblue())    }    private func setupincomingbubble() -> jsqmessagesbubbleimage {        let bubbleimagefactory = jsqmessagesbubbleimagefactory()        return bubbleimagefactory!.incomingmessagesbubbleimage(with: uicolor.jsq_messagebubblelightgray())    }//    override func collectionview(_ collectionview: uicollectionview, cellforitemat indexpath: indexpath) -> uicollectionviewcell {//        //your logic here//    }}