Learn pointer from learncpp.com