Added buyLoop Class