Fixed typos within the code. It works now