creating homework assignment functions