Calculate ip addresses
Add tests for ip calculations