Changed floating number variables to BigDecimal class for more accurate business logic