Updated verision of Ahmeds Code