added and() function constructor