removed section on private variables; fixed code example