Fixed issue 4 of todo list