A few functional…functions for a homework assignment