Consider the scenario of a "BookStore" which is described by its bookId, author, title, price, publishing year, and quantity available. Include a method called purchase() in the class "Book" that takes the purchase quantity as a parameter and updates the available quantity appropriately.