Exercises 2.7 and 2.8, working

with bitwise info in program