Code I have devloped