added model for purchases
added persistance to purchases