Put back the inAttribute function and removed extraneous console.log.