A much more elegant example of scalegrid