add(cs193p): assignment3, task 1-5