Encapsulating the User in a Function
medium.com