Homework1 for STA250 course. Author: Yu Liu