Creating constructors for User and Tree