simple cases coding completed