Write functions

Write functions to complete assignment shell