Functions are now implemented. Slightly more sophisticated donsitional statements.