added initWith method for User class