using vectors