Pull Request from Lu Li

Please find the functions in Homework 1. Thank you!