[#71715690] Refactored to use object creation methods

Signed-off-by: Ellie Schneiders <ems2141@gmail.com>
Merge branch 'master' of github.com:gSchool/g2-social-network