sem 03 and 04 R files