Using bit operator, and added some sample