Completes basic Ruby logic functionality