Homework 3 Fix

Followed some better coding practices regarding the sequence length.
Made it's value referenced differently than the total.