class hints and lambda use