second attempt at course project