Couldn't match type error

Please use ``` around both code samples and errors, and avoid posting screenshots of code or errors, as explained here.