Cook sugar, butter and milk untilit will thread. Remove from heat. Add flavoring and nuts. Beat until mixture is thick and creamy. Pour in buttered pan. Cut into squares when cool.