completed frame method
completed hw 8 on fri 10/3/14