Refactors coins to vector