Creating a GEM - a step by step tutorial