started to learn how to use function pointers