complete assignment

completed assignment and added code