adding worksheet from lectures, also myfunction.R