Add class method to make construction easier