create behavior of unit class