hw2-A completed