finished the getInstructions function and tested