Created functions for assignment