Create risk.py

classes and functions for risk