Basically the subnet calculating works, still need to calculate the subnet ID and tidy up work done