Added dict & functions for lesson 3