Moved code to GildedRose class.