apple simple code