An <code>immediately invoked function expression</code> (<code>IIFE</code>) is often used to group related functionality into a single object or <code>module</code>. For example, an earlier challenge defined two mixins:
<blockquote>function glideMixin(obj) {<br>  obj.glide = function() {<br>    console.log("Gliding on the water");<br>  };<br>}<br>function flyMixin(obj) {<br>  obj.fly = function() {<br>    console.log("Flying, wooosh!");<br>  };<br>}</blockquote>
We can group these <code>mixins</code> into a module as follows:
<blockquote>let motionModule = (function () {<br>  return {<br>    glideMixin: function (obj) {<br>      obj.glide = function() {<br>        console.log("Gliding on the water");<br>      };<br>    },<br>    flyMixin: function(obj) {<br>      obj.fly = function() {<br>        console.log("Flying, wooosh!");<br>      };<br>    }<br>  }<br>}) (); // The two parentheses cause the function to be immediately invoked</blockquote>
Note that you have an <code>immediately invoked function expression</code> (<code>IIFE</code>) that returns an object <code>motionModule</code>. This returned object contains all of the <code>mixin</code> behaviors as properties of the object.
The advantage of the <code>module</code> pattern is that all of the motion behaviors can be packaged into a single object that can then be used by other parts of your code. Here is an example using it:
Create a <code>module</code> named <code>funModule</code> to wrap the two <code>mixins</code><code>isCuteMixin</code> and <code>singMixin</code>. <code>funModule</code> should return an object.