adding tyler's code & slides