homework 1
updated w/ bug 'bus error: 10'