Working version for 1 block.
Lab 5 done