inital crack at prog assignment 2