Modified hw4 bitwise

Here is my and @rluk001 's resubmission for HW4 for a higher grade.