Corrected some parts and added complete sketch (in progress)