Updated code with tutorial code
finished updating users