r_prog-008: Assignment 2, draft 2