Added signature for add method
Added vertices field
Implemented Comparable interface