Having a hard time inputing the variable into the function, unsure as of why it is not working