Tested Initial Code