Fixed Sample Code