Modify money class

Abstract money class, create abstract time method, create static factory method for both Dollar and Franc classes.