completed programming asignment 1