Fixed bug in code. Assessment complete