added the store controller
Made many changes as per the tutorial