create a method that takes in a user