Created a User object, and moved some functions into the methods.