Fixed variable names, added basic example