Grid cells in layer II medial entorhinal cortex of the mammalian brain fire periodically tiling the explored environment in a striking triangular tessellation pattern [Hafting et al. 2005]. It has been shown that attractor mechanisms govern the network dynamics of such representational system [Yoon et al. 2013]. A computational model of grid cells based on low-dimensional attractor dynamics has been presented [Guanella et al. 2006]. During this tutorial we will review and implement such model using a simulated agent.