Use a Version class

Signed-off-by: David Celis <me@davidcel.is>