Create a class, add four functions, var scope

All of the variables are local and copied; therefore, the original
variables are not changed. They are scoped only to the method.