completed coding exercise