Added 4d
Added tests for 4b
Added 4c tests