Functioning Initial Code