Basic functionality built

Using double to do calculations.
TODO: Switch to BigDecimal