Refactored coins again and added static binding to types in views.