Practice Class Function

These codes use the class function, which will become useful later on so
it's good to know exactly how it works