Code working per ex08 instructions