Introduce calculator

plus some other stuff that's more experimental
Unsuccessful messing about with repositories