create a generate orientation method, rephrased test