Added week4 and week5 patmat initial implementation