Attack code

Not complete