add 6th test case
refactor code