Write implementation to pass first part of test. Refactor code and change ints to type double to better represent money