using single coin class