made abstract class and classes coin and dollar