refactoring away the constructor that takes height and width but not vertices