Made add() a one-line function for readability in compiler output
Added more functions to the example for testing