created 3 functions

functions are activated when commanded regardless of where the code is
located