added init and mutator functions to user