Lab1 for 8 bits