Worked with blocks. Fixed all errors