math with top level methods

with top level methods: #23