added a vector class for easy calculations