Create 3.py

So it isn't optimized , but it's pretty and straight forward