Implemented logical operators `|', `&', and `^'