removed extra end on code block

Hi 
fixed an error in the code that was causing problems.