Code should work
Fixed typos in code, now functional