This did work but it gave me a different error when trying to log it in the console