modified bitwise ops, activity lifecycle and added OOP
 added OOP