Added solution for Homework 4
Add the null pointer check