code as module method with specs