added homework for week4a basic, implemented using ipython notebook