Making use of class rather than inline definition.