separate cases for nil and case of first name
using custom class and checking for nil