Manual stepping coded
Completed sequential steps code
Rewrite for bitwise operation