Code changed
Corrected code blocks