basic functions homework