added blocks
added solving and printing