this is the code I wrote for BerkleyX Saas course in edx.org I publish this only for refference ,you should work these out by yourself,be honourable