Code for richcoin class competition