cleaned up stock example