refactored coin class, still working on till test