assignment for r-programming