Adding version to the constructor