Mix sugar and cornstarch in a bowl until well mixed. Add 1/4 cup milk and mix well until no lumps. Heat remaining milk. When hot mix in cornstarch-sugar mixture slowly. Cook 2-5 minutes until thickens up, stirring slowly. Take off heat and add flavoring. Set in fridge 4 hours.