Subnets now definitions instead of classes