Added constructor.
Added the fields and methods for value and vertices.